import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import childRoutes from './childrouter'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/root.vue'),
    children: childRoutes,
  },
]

const router = createRouter({
  // history: createWebHistory(process.env.BASE_URL),
  history: createWebHashHistory(),
  routes,
})

export default router
